package com.example.smartcity.ui;

import android.content.Intent;
import android.os.Bundle;
import android.widget.Button;
import androidx.appcompat.app.AppCompatActivity;
import com.example.smartcity.R;
import com.example.smartcity.ui.ListActivity;

public class HomeActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_home);

        Button btnToList = findViewById(R.id.btn_to_list);
        btnToList.setOnClickListener(v ->
                startActivity(new Intent(this, ListActivity.class))
        );
    }
}